

<div class="bjui-pageContent">
	<form action="${base}/admin/systemRoleEdit" id="form1"
		data-toggle="validate" data-alertmsg="false">
		<input type="hidden" name="roleId" value="${vo.roleId}" />
		<table class="table table-condensed table-hover">
			<tbody>
				<tr>
					<td><label for="roleName" class="control-label x85">名称：</label>
						<input type="text" name="roleName" id="roleName"
						value="${vo.roleName!}" data-rule="required"></td>
					<td>
				</tr>
				<tr>
					<td><label for="sourceKey" class="control-label x85">角色key：</label>
						<input type="text" name="sourceKey" id="sourceKey"
						value="${vo.sourceKey!}" data-rule="required "> &nbsp;
						<span style="color:#ff6600">*&nbsp;输入格式如：&nbsp;role:admin&nbsp;&nbsp;&nbsp;*必须有&nbsp;role:</span></td>
					<td>
				</tr>
				<tr>
                    <td><label for="resourceList" class="control-label x85">拥有资源：</label>
                    <!-- <input type="text" name="resourceList" id="" resourceList""
                         value="${(vo.resourceList!join(','))!}" data-rule="required "> -->
                         <select data-width=300 data-toggle="selectpicker" name="resourceList"
                            id="resourceList" data-rule="required" multiple>
                            <#list resList?sort_by('order1')?reverse as i>
                             <#if i.parId =0 >
                            <option value="${i.id}"<#if vo.resourceList?contains(i.id?string)> selected</#if>>${i.name!}</option>
                              <#list resList?sort_by('order1')?reverse as j>
                             <#if j.parId=i.id >
                             <#nt><option value="${j.id}"<#if vo.resourceList?contains(j.id?string)> selected</#if>>&nbsp;&nbsp;&nbsp;&nbsp;${j.name!}</option>
                             </#if></#list>
                            </#if></#list>
                        </select></td>
                    <td>
                </tr>
                <tr>
                    <td><label for="comment" class="control-label x85">备注：</label>
	                     <textarea name="comment" id="comment" rows="3" cols="50">${vo.comment!}</textarea></td>
                    <td>
                </tr>
                <tr>
                    <td><label for="status" class="control-label x85">状态：</label>
						<select name="status" id="status" data-toggle="selectpicker">
						<#list statusList?keys as i>
						<option value="${i}" <#if vo.status??&&vo.status==i?number>selected</#if>>${statusList[i]}</option></#list>
						</select></td>
					<td>
                </tr>
			</tbody>
		</table>
	</form>
</div>
<div class="bjui-pageFooter">
	<ul>
		<li><button type="button" class="btn-close" data-icon="close">取消</button></li>
		<li><button type="submit" class="btn-default" data-icon="save">保存</button></li>
	</ul>
</div>